package com.zhl.test.api;

import com.other.CustomeFeignConfigure;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "test-provider",path = "/test", configuration = {CustomeFeignConfigure.class})
//@FeignClient(name = "test-provider",contextId = "123", path = "/test")
public interface FeignProductApi {

    @GetMapping("/hello")
    String helloFeign(@RequestParam("name")String name, @RequestParam Integer pa);

    @PostMapping("/hello1")
    String helloFeign1(FeignParam param);


    @PostMapping("/hello2")
    String helloFeign2(@RequestBody FeignParam param);
}
